<!DOCTYPE html>

<head></head>

<body>
    <canvas id="canvas" width="600" height="400"></canvas>
    <input type='range' min='1' max='360' value="30" id="speedRange" >
    <script type="text/javascript" src='../../dist/bundle.js'> </script>
    <script>
        window.onload = ()=> {
            let canvas = document.querySelector("#canvas");
            let example = new Library.HelloTriangle;
            example.init(canvas);
            window.example = example;
            let input = document.querySelector("#speedRange");
            input.oninput = ()=>{
                example.speed = parseInt(input.value);
            }
        }
    </script>
</body>